﻿package  com.hadron.mp3player
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import fl.controls.ComboBox;

	
	/**
	 * ...
	 * @author Hadron
	 */
	public class TrackList extends ComboBox
	{	
		private var tf:TrackTextFormat = new TrackTextFormat();
		private var normal:MovieClip = new trackBarNormal();
		private var over:MovieClip = new trackBarOver();
		private var hit:MovieClip = new trackBarHit();
		
		public function TrackList()
		{
			editable = false;
			width = 236;
			height = 20;
			
			setStyle("embedFonts", true);
			setStyle("textFormat", tf);
			textField.setStyle("embedFonts", true);
			textField.setStyle("textFormat", tf);
			dropdown.setRendererStyle("embedFonts", true);
			dropdown.setRendererStyle("textFormat", tf);
			setStyle("upSkin", normal);
			setStyle("overSkin", over);
			setStyle("downSkin", hit);
			setStyle("textPadding", 4);
			
			useHandCursor = true;
		}
	}
}